import request from '@/api/request.js'

// 获取首页banner数据
export const getBanner = () =>
	request({
		url: 'homeBanner'
	})

// 获取公告列表内容
export const getNotice = (data) =>
	request({
		url: 'wallNewsList',
		data
	})

// 获取每日推荐壁纸
export const getRandomList = () =>
	request({
		url: 'randomWall',
	})

// 获取专题精选壁纸
export const getSelectedTopics = (data) =>
	request({
		url: 'classify',
		data
	})

// 获取分类中的详情壁纸
export const getDetailOfClassify = (data) =>
	request({
		url: 'wallList',
		data
	})

// 获取单个壁纸的详情
export const getCurrentWall = (data) =>
	request({
		url: 'detailWall',
		data
	})

// 为壁纸进行评分
export const submitScore = (data) =>
	request({
		url: 'setupScore',
		data
	})

// 为壁纸下载进行记录
export const writeWallDownload = (data) =>
	request({
		url: 'downloadWall',
		data
	})


// 获取用户信息
export const getUserInfo = () =>
	request({
		url: 'userInfo'
	})

// 获取用户下载/评分相关壁纸数据
export const getSelfOfWallInfo = (data) =>
	request({
		url: 'userWallList',
		data
	})


// 获取公告详情
export const getNoticeDetail = (data) =>
	request({
		url: 'wallNewsDetail',
		data
	})


// 获取壁纸搜索结果
export const getSearchResult = (data) =>
	request({
		url: 'searchWall',
		data
	})